﻿@model vnMcdonald.Models.Product

@{
    ViewBag.Title = "Detail";
}

    <div class="detail-product">
        <div class="modal-header">
            <h3 id="myModalLabel">@Model.Name</h3>
        </div>
        <div class="modal-body">
            <div class="album-product" id="slide-album-image">
                @foreach(var item in Model.Images.Where(im => im.IsActive == 1)){
                  <img src="@item.Src" alt="@item.Name" width="100px" />
                }
            </div>
            <div class="content-detail-product">
                <p class="description">@Model.Description</p>
                <p class="price">Giá: <span>@String.Format("{0:#,#}",Model.Price) VNĐ</span></p>
                @using (Ajax.BeginForm("AddToCart", "Cart", new { ProductId = Model.ProductId}, new AjaxOptions
                {                  
                    HttpMethod = "Post",
                    OnSuccess = "onSuccess"
                }))
                { 
                    @Html.AntiForgeryToken()
                <div class="row-fluid">
                <div class="pull-right"><input type="number" name="Quantity" id="input-quantity" /></div>
                </div>
                <input type="submit" class="btn-order" value = "Đặt món" />
                }
            </div>
        </div>
    </div>
